﻿using System.Collections.Generic;

namespace H3Sdk.Attachment
{
    public class FileObject
    {
        /// <summary>
        /// 文件id
        /// </summary>
        public string FileId { get; set; }
        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 文件类型
        /// </summary>
        public string ContentType { get; set; }
        /// <summary>
        /// 所属SchemaCode
        /// </summary>
        public string SchemaCode { get; set; }
        /// <summary>
        /// 所属业务对象id
        /// </summary>
        public string BizObjectId { get; set; }
        /// <summary>
        /// 业务对象附加信息
        /// </summary>
        public Dictionary<string, object> BizProperties { get; set; } = new Dictionary<string, object>();
        /// <summary>
        /// 文件内容，字节数组
        /// </summary>
        public byte[] Content { get; set; }
    }
}
